#import "GOPongController.h"

@implementation GOPongController
- (id)init
{
	[super init];
	player1Score = 0;
	player2Score = 0;
	return self;
}
- (void)awakeFromNib
{
	[player1 setFloatValue:player1Score];
	[player2 setFloatValue:player2Score];
}

- (void)scoreOne:(int)playerNumber
{
	if(playerNumber == 1)
	{
		player1Score = player1Score +1;
	}
	if(playerNumber == 2)
	{
		player2Score = player2Score +1;
	}
	[self updateScore];
}

- (void)updateScore
{
	[player1 setFloatValue:player1Score];
	[player2 setFloatValue:player2Score];
}
@end
